<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>整改</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        a {
            text-decoration: none;
        }

        a:hover {
            text-decoration: none;
        }

        ul,
        li {
            list-style-type: none;
        }

        html,
        body {
            width: 100%;
            height: 100%;
            font-family: Arial;
            background-color: #fcfcfc;
            font-size: 18px
        }

        *,
        *:after,
        *:before {
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
        }

        #wrap {
            height: 100%;
            display: -webkit-box;
            display: -webkit-flex;
            display: flex;
            -webkit-box-orient: vertical;
            -webkit-flex-flow: column;
            flex-flow: column;
        }

        #main {
            -webkit-box-flex: 1;
            -webkit-flex: 1;
            flex: 1;
            overflow-x: hidden;
            overflow-y: scroll;
        }

        #header {
            background-color: #fe6263;
        }

        .pcc_header {
            width: 100%;
            /*height: 2.2rem;*/
            display: flex;
        }

        .pcc_header .pcc_return {
            width: 4rem;
            height: 2.2rem;
            background: url("../image/retun-icon.png")no-repeat;
            background-size: 0.6rem;
            background-position: 0.7rem center;
        }

        .pcc_header .pcc_title {
            width: 12rem;
            height: 2.2rem;
            line-height: 2.2rem;
            color: #ffffff;
            text-align: center;
            font-size: 0.96rem;
        }

        #main .pcc_title {
            width: 100%;
            height: 1.8rem;
            line-height: 1.8rem;
            color: #000000;
            background-color: rgb(230, 230, 230);
            font-size: 0.8rem;
            padding: 0 0.7rem;
            display: flex;
            justify-content: space-between;
        }
        .pcc_item{
          width: 100%;
          height: auto;
          padding: 0.5rem 0.75rem;
        }
        .pcc_item .pcc_text{
          width: 100%;
          height: auto;
          font-size: 0.8rem;
          color: #333333;
          line-height: 1.5rem;
        }
        .pcc_item .pcc_note{
          width: 100%;
          height: 4rem;
          font-size: 0.8rem;
          color: #333333;
          line-height: 1.2rem;
          border: 1px solid #eeeeee;
          border-radius: 5px;
          outline: inherit;
          padding: 0.3rem 0.5rem
        }
        #pcc_licenseimg {
            width: 35%;
            display: block;
            margin: 3rem auto;
        }
        .pcc_tijiao{
          width: 4rem;
          color: #ffffff;
          text-align: center;
          line-height: 2.2rem;
          font-size: 0.8rem;
        }
    </style>
</head>

<body>
    <div id="wrap">
        <div id="header">
            <div class="pcc_header">
                <a class="pcc_return" href="#" onclick="closeappend();"></a>
                <p class="pcc_title">整改</p>
                <span class="pcc_tijiao">提交</span>
            </div>
        </div>
        <div id="main">
            <div class="pcc_title">巡查项</div>
            <div class="pcc_item">
              <p class="pcc_text">规范用电线路的敷设及电气装置的安装及使用，电气线路严禁私拉乱接，并应做好套管保护。</p>
              <textarea class="pcc_note" placeholder="请输入备注"></textarea>
            </div>
            <div class="pcc_title">上传照片</div>
            <img id='pcc_licenseimg' src="../image/photo-icon.jpg" onclick="license();" alt="">
        </div>
    </div>

</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
    apiready = function() {
        var header = $api.byId('header');
        //适配iOS 7+，Android 4.4+状态栏
        $api.fixStatusBar(header);

    };
    // 选择现场照
    var imgsrc = '';
    function license() {
        var FNPhotograph = api.require('FNPhotograph');
        FNPhotograph.open({
            path: 'fs://savePath',
            album: true,
            quality: 'medium'
        }, function(ret) {
            if (ret.imagePath) {
                imgsrc = ret.imagePath
                document.getElementById('pcc_licenseimg').src = imgsrc;
                FNPhotograph.close(
                    function(ret) {

                    });
            }
        });
    };
    //关闭本窗口
    function closeappend() {
        api.closeWin();
    };
</script>

</html>
